Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-215

String as default Option type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2
    • 1.3
    • CLI-1.x
    • None

    Description

      getParsedOptionValue returns null unless Option.type gets explicitly set. The user expects it to be String unless set to any other type.
      This coult be either fixed in the Option constructor or in CommandLine.getParsedOptionValue. Mentioning this behaviour in Javadoc would be advisable.

      Attachments

        Activity

          People

            ebourg Emmanuel Bourg
            themulle Manuel Müller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: